package org.jeecg.modules.basic.outstock.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.basic.outstock.entity.LwgyOutStock;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.basic.outstock.entity.LwgyOutStocks;
import org.jeecg.modules.basic.outstocktype.entity.LwgyOutStockType;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanGoods;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanapplication;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanapplications;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 出库管理表
 * @Author: jeecg-boot
 * @Date:   2021-04-02
 * @Version: V1.0
 */
public interface ILwgyOutStockService extends IService<LwgyOutStock> {

    /**
     * 添加一对多
     *
     */
    public void saveMain(LwgyOutStock lwgyOutStock, List<LwgyOutStockType> lwgyOutStockTypeList) ;

    /**
     * 修改一对多
     *
     */
    public void updateMain(LwgyOutStock lwgyOutStock,List<LwgyOutStockType> lwgyOutStockTypeList);

    /**
     * 删除一对多
     */
    public void delMain (String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain (Collection<? extends Serializable> idList);



    IPage<LwgyOutStocks> queryPageCustomer(Page<LwgyOutStocks> page, QueryWrapper<LwgyOutStocks> queryWrapper, String id);

    void changeState(String id,Double progress);

    List<LwgyOutStocks> queryPageExportListCustom(LwgyOutStocks lwgyOutStocks);


}
